package com.finance.borrower;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author: Apollo
 * @Date: 2021/4/10
 * @Description: 个人信息
 */
@Entity
@Table(name = "personal_info")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PersonalInfo implements Serializable {

    /**
     * 主键
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    /**
     * 标识
     */
    private String code;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 修改时间
     */
    private Date updateTime;

    /**
     * 是否删除 1:否 2:是
     */
    private Integer isDelete;

    /**
     * 姓名
     */
    private String name;

    /**
     * 性别 1:男 2:女
     */
    private Integer gender;

    /**
     * 出生日期
     */
    private Date birthday;

    /**
     * 所在地区
     */
    private String location;

    /**
     * 详细地址
     */
    private String address;

    /**
     * 婚姻状态 1:已婚 2:未婚
     */
    private Integer maritalStatus;

    /**
     * 借款人信息标识
     */
    private String borrowerInfoCode;







    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_CODE = "code";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_IS_DELETE = "is_delete";

    public static final String COL_NAME = "name";

    public static final String COL_GENDER = "gender";

    public static final String COL_BIRTHDAY = "birthday";

    public static final String COL_LOCATION = "location";

    public static final String COL_ADDRESS = "address";

    public static final String COL_MARITAL_STATUS = "marital_status";

    public static final String COL_BORROWER_INFO_CODE = "borrower_info_code";

}